import React from 'react'
import axios from 'axios';
import * as api from '../../utils/Zxapi'

class ZxActiveBtn extends React.Component{

    AddActive(){
       console.log(this.props);
    //    let {item}=this.props
       let {activeDidMoney,activeCutMoney,activeId,shopIdValue,Change}=this.props
       axios({
           url:api.GET_STOPADDACTIVE,
           method:'get',
           params:{
            active_money1:activeDidMoney,
            active_money2:activeCutMoney,
            shop_id:1,
           }
       }).then(data=>{
          console.log(data);
       }).catch(err=>{
           console.log(err);

       })
    }
    changeActive(){

    }
    delActive(){

    }
    render (){
        return(
            <div>
              <button onClick={this.AddActive.bind(this)}>添加</button>
              <button onClick={this.changeActive.bind(this)}>修改</button>
              <button onClick={this.delActive.bind(this)}>删除</button>
            </div>
        )
    }

}
export default ZxActiveBtn